<?php

namespace app\admin\validate\role;

use think\Validate;

class Role extends Validate
{
    protected $rule = [
        'role_name' => 'require|max:20|token',
        'role_description' => 'max:100'
    ];

    protected $message = [
        'role_name.require' => '请输入角色名称',
        'role_name.max' => '角色名称不能超过20个字符',
        'role_description.max' => '角色描述不能超过100个字符'
    ];
}